﻿using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;

namespace LogNet6.Sqlite.Demo.Pages
{
    public class IndexModel : PageModel
    {
        private readonly ILogger<IndexModel> _logger;

       
        public IndexModel(ILogger<IndexModel> logger)
        {
            _logger = logger;
        }
        public string Message = "Hello" + DateTime.Now;

        public void OnGet()
        {
            _logger.LogInformation(Message);
        }
    }
}